package cn.thornbird.orgsync.model.netease;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DomainDetail extends Response {

    @JsonProperty("data")
    private Domain data;


    @Data
    public static class Domain {

        @JsonProperty("domain")
        private String domain;

        @JsonProperty("domainOpenId")
        private String domainOpenId;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private Date expTime;

        @JsonProperty("logo")
        private String logo;

        @JsonProperty("orgName")
        private String orgName;

        @JsonProperty("orgOpenId")
        private String orgOpenId;

        /**
         * 是否企业通讯录中显示: 0-不显示, 1-显示
         */
        @JsonProperty("visibleInAddr")
        private String visibleInAddr;

    }

}
